package com.lmk.t02;

import javax.print.DocFlavor;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.Reader;

public class ReadTest {
    public static void main(String[] args) {
        String path="d:/11/d.txt";
        File file=new File(path);
      try(BufferedReader br=new BufferedReader(new FileReader(file))) {
       String lin=null;
       while ((lin=br.readLine())!=null){
           System.out.println(lin);
       }
      }catch (Exception e){
          e.printStackTrace();
      }
    }
}
